#!/bin/bash

# 1: running
# 0: stopped

if [[ -d "${CSD_PATH}" || -d "${CSX_PATH}" ]]; then
    count=`/bin/systemctl status dnsmasq.service | grep -c running`
    if [ $count -ne "0" ]; then
        echo "1"; exit 0
    else
        echo "0"; exit 0
    fi
fi

